Why am I encountering a ZeroDivisionError despite receiving correct outputs in my Python code

welcome to shbcf.ru